<template>
  <a-carousel
      :autoPlay="true"
      animation-name="card"
      show-arrow="never"
      indicator-position="outer"
      indicator-type="line"
      trigger="hover"
      :style="{
      width: '90%',
      height: '240px',
    }"
  >

    <a-carousel-item v-for="item in imagesLsit" :style="{ width: '60%' }">
      <img
          :src="item.imageUrl"
          :style="{
          width: '100%',
        }"
      />
    </a-carousel-item>
  </a-carousel>
</template>

<script setup>
import {onMounted, reactive, ref, toRef, toRefs, watch} from "vue";


const props = defineProps({
  dataList: {
    required: true
  }
})

watch(() => props.dataList, (newValue, oldValue) => {
      imagesLsit.value = newValue
      /* ... */
    }
)
let imagesLsit = ref([]);


</script>

<style scoped>
:deep(.arco-carousel-indicator-item) {
  width: 2rem;
  height: 0.3rem;
}
</style>